﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Plugin.Core;

namespace testControlPlugin
{
    [PluginInfo("Example Control","none","Syamand Mahrofy","Armani Software Ltd.","2009/08/24","1.0.0.0")]
    [PluginSettings(Run=false,IsControl=true)]
    [Slot("ToolBar")]
    [Extention("Workbench")]
    public partial class TestControl : UserControl,IPlugin
    {
        public TestControl()
        {
            InitializeComponent();
        }

        #region IPlugin Members

        private IPlugins _plugins=new IPlugins();

        public IConfigoration Config
        {
            get;
            set;
        }

        public new IPlugin Parent
        {
            get;
            set;
        }

        public IPlugins Plugins
        {
            get 
            {
                return _plugins; 
            }
        }

        public void Run(params object[] parameters)
        {
            MessageBox.Show("OK");
        }

        public object Value
        {
            get
            {
                return this;
            }
            set
            {
                
            }
        }

        #endregion
    }
}
